package com.stud.common.enums;

import lombok.Getter;

/**
 * @author Stud
 * @date 2022-09-08 18:52
 */
@Getter
public enum BusinessEnum {
    /**
     * 富文本编辑器图片
     */
    EDITOR_IMAGE("EDITOR_IMAGE"),

    /**
     * 音乐
     */
    MUSIC("MUSIC"),

    ;


    /**
     * 编码,也是存储目录
     */
    private final String code;

    /**
     * 是否可以关联多个文件
     */
    private final boolean multi;

    BusinessEnum(String code, boolean multi) {
        this.code = code;
        this.multi = multi;
    }

    BusinessEnum(String code) {
        this.code = code;
        this.multi = true;
    }

}
